package com.watereast;

import java.util.Set;
import redis.clients.jedis.Jedis;

public class DeleteRedis {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("10.186.67.14", 31001);
        jedis.auth("Zdnsx@2017");
        System.out.println("redis+ jedis.ping());
                Set<String> keys = jedis.keys("insuranceBind:userInfo:*");
        System.out.println("+ keys.size());
                Set<String> values = jedis.keys("insuranceBind:userInfo:*");
        for (String value : values)
            System.out.println(value);
        jedis.close();
    }
}
